﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="WRENTSALETYPEManager.aspx.cs" Inherits="Admin_Pages_WRENTSALETYPEManager" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(
        function () {
            if (document.getElementById) {
                var progress = document.getElementById('progress');
                var blur = document.getElementById('blur');
                progress.style.width = '300px';
                progress.style.height = '30px';
                blur.style.height = document.documentElement.clientHeight;
                progress.style.top = document.documentElement.clientHeight / 3 - progress.style.height.replace('px', '') / 2 + 'px';
                progress.style.left = document.body.offsetWidth / 2 - progress.style.width.replace('px', '') / 2 + 'px';
            }
        }
    )
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        <asp:Label ID="lbEntrysale" runat="server" Text="<%$ Resources:AllSite,lbEntrySale_userResource1 %>"></asp:Label></h1>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            
       
    <asp:Panel runat="server" ID="pnShow">
        <div class="Control">
            <ul>
                <li>
                    <asp:LinkButton runat="server" Text="<%$ Resources:AllSite,btnAddEntrySale_Resource1 %>" CssClass="vadd" ID="btnAdd" OnClick="btnAdd_Click"></asp:LinkButton>
                </li>
                <li>
                    <asp:LinkButton runat="server" Text="<%$ Resources:AllSite,btnDeleteEntrySale_Resource1 %>" CssClass="vdelete" ID="btnDelete" OnClick="btnDelete_Click">Delete</asp:LinkButton>
                </li>
            </ul>
        </div>
        <asp:DataGrid runat="server" ID="grvWRENTSALETYPE" Width="100%" CssClass="TableView"
            AutoGenerateColumns="False" AllowPaging="True" PageSize="9" PagerStyle-Mode="NumericPages"
            PagerStyle-HorizontalAlign="Center" OnItemCommand="grvWRENTSALETYPE_ItemCommand"
            OnPageIndexChanged="grvWRENTSALETYPE_PageIndexChanged">
            <HeaderStyle CssClass="trHeader"></HeaderStyle>
            <ItemStyle CssClass="trOdd"></ItemStyle>
            <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle>
            <Columns>
                <asp:TemplateColumn ItemStyle-CssClass="tdCenter">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSelect" runat="server"></asp:CheckBox>
                    </ItemTemplate>
                    <ItemStyle CssClass="tdCenter"></ItemStyle>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="ID" HeaderText="ID" Visible="False" />
                <asp:BoundColumn DataField="TypeSaleName" HeaderText="<%$ Resources:AllSite,grTypeSaleName1_userResource1 %>" ItemStyle-CssClass="Function" />
                <asp:BoundColumn DataField="CreateDate" HeaderText="<%$ Resources:AllSite,grCreateDateEntSale_userResource1 %>" ItemStyle-CssClass="Time" />
                <asp:BoundColumn DataField="Name" HeaderText="<%$ Resources:AllSite,grNameEntSale_userResource1 %>" ItemStyle-CssClass="Function" />
                <asp:BoundColumn DataField="Description" HeaderText="<%$ Resources:AllSite,grDescriptionEntSale_userResource1 %>" ItemStyle-CssClass="MultiLine" />
                <asp:BoundColumn DataField="LangName" HeaderText="<%$ Resources:AllSite,grLangNameEntSale_userResource1 %>" ItemStyle-CssClass="Function" />
                <asp:BoundColumn DataField="Keywords" HeaderText="<%$ Resources:AllSite,grKeywordsEntSale_userResource1 %>" ItemStyle-CssClass="Function" />
                <asp:BoundColumn DataField="Active" HeaderText="<%$ Resources:AllSite,grActiveEntSale_userResource1 %>" ItemStyle-CssClass="Active" />
                <asp:TemplateColumn ItemStyle-CssClass="Option">
                    <HeaderTemplate>
                       <asp:Label ID="lbOptionEntSale" runat="server" Text="<%$ Resources:AllSite,grOptionEntSale_userResource1 %>"></asp:Label>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>'
                            CommandName="Edit" ImageUrl="~/Admin/Images/edit.png" ToolTip="<%$ Resources:AllSite,btnEditEntSale_Resource1 %>" />
                        |
                        <asp:ImageButton ID="btnDelete" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>'
                            CommandName="Delete" ImageUrl="~/Admin/Images/delete.png" OnClientClick="return confirm('Are you sure?')"
                            ToolTip="<%$ Resources:AllSite,btnDeleteEntSale_Resource1 %>" />
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
            <PagerStyle HorizontalAlign="Center" CssClass="gridview" Height="30" Position="Bottom" NextPageText="Previous"
                PrevPageText="Next" Mode="NumericPages"></PagerStyle>
        </asp:DataGrid>
    </asp:Panel>
    <asp:Panel runat="server" ID="pnUpdate">
        <div class="TableUpdate">
            <div class="mainquoc" style="visibility: hidden">
                <div class="quoclable">
                    <asp:Label ID="lbID" runat="server" Visible="False"></asp:Label>
                </div>
                <div class="quocinput_detail">
                    <asp:TextBox ID="txtID" runat="server" Visible="False"></asp:TextBox>
                </div>
                    
                </div>
            <div class="mainquoc">
                <div class="quoclable">
                    <asp:Label ID="lbTypeSaleName" Text="<%$ Resources:AllSite,grTypeSaleName1_userResource1 %>" runat="server"></asp:Label>
                </div>
                <div class="quocinput_detail">
                    <asp:TextBox ID="txtTypeSaleName" runat="server" CssClass="text" MaxLength="50"></asp:TextBox>
                </div>
                
                <div class="quoclable">
                    <asp:Label ID="lbIDLang" runat="server" Text="<%$ Resources:AllSite,grLangNameEntSale_userResource1 %>"></asp:Label>
                </div>
                <div class="quocinput_detail">
                    <asp:DropDownList ID="dropIDLang" runat="server" CssClass="dropdown">
                    </asp:DropDownList>
                </div>
            </div>
            <div class="mainquoc">
                <div class="quoclable">
                    <asp:Label ID="lbDescription" runat="server" Text="<%$ Resources:AllSite,grDescriptionEntSale_userResource1 %>"></asp:Label>
                </div>
                <div class="quocinput_detail">
                    <asp:TextBox ID="txtDescription" runat="server" CssClass="text" TextMode="MultiLine"></asp:TextBox>
                </div>
                <div class="quoclable">
                    <asp:Label ID="lbActive" runat="server" Text="<%$ Resources:AllSite,grActiveEntSale_userResource1 %>"></asp:Label>
                </div>
                <div class="quocinput_detail">
                    <asp:DropDownList ID="dropActive" runat="server" CssClass="dropdown">
                        <asp:ListItem Value="Y">Y</asp:ListItem>
                        <asp:ListItem Value="N">N</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="mainquoc">
                <div class="quoclable">
                    <asp:Label ID="lbKeywords" runat="server" Text="<%$ Resources:AllSite,grKeywordsEntSale_userResource1 %>"></asp:Label>
                </div>
                <div class="quocinput_detail">
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="text" MaxLength="50"></asp:TextBox>
                </div>
            </div>
        </div>
        <div class="Control">
            <ul>
                <li>
                    <asp:LinkButton runat="server" Text="<%$ Resources:AllSite,btnUpdateEntrySale_Resource1 %>" CssClass="uupdate" ID="btnOk" OnClick="btnOk_Click"></asp:LinkButton>
                </li>
                <li>
                    <asp:LinkButton runat="server" Text="<%$ Resources:AllSite,btnBackEntrySale_Resource1 %>" CssClass="uback" ID="btnBack" 
                        OnClick="btnBack_Click" CausesValidation="False"></asp:LinkButton>
                </li>
            </ul>
        </div>
    </asp:Panel>
     </ContentTemplate>
     <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="Click"/>
            <asp:AsyncPostBackTrigger ControlID="btnBack" EventName="Click"/>
            <asp:AsyncPostBackTrigger ControlID="btnDelete" EventName="Click"/>
            <asp:AsyncPostBackTrigger ControlID="btnOk" EventName="Click"/>
        </Triggers>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress" runat="server">
        <ProgressTemplate>
            <div id="progress">
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Admin/Images/loading6.gif"/>
                </div>
            <div id="blur" />
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
